/*
 * Copyright (c) 2015 DHC Corporation.
 */

package cn.com.dhc.danlu.widget.textview;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

/**
 * 跑马灯TextView
 *
 * @author MuWei
 * @version 1.00 2015/02/03 新建
 */
public class MarqueeTextView extends TextView {

    public MarqueeTextView (Context context) {
        super (context);
    }

    public MarqueeTextView (Context context, AttributeSet attrs) {
        super (context, attrs);
    }

    public MarqueeTextView (Context context, AttributeSet attrs, int defStyle) {
        super (context, attrs, defStyle);
    }

    @Override
    public boolean isFocused () {
        // 由于跑马灯效果要在TextView获取焦点时才会有效，因此此方法要永远返回true
        return true;
    }
}